<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div {
      position: sticky;
      top: 0;
    }
  </style>
</head>
<body>
  <div><img src="https://picsum.photos/id/10/480/360"></div>
  <div><img src="https://picsum.photos/id/11/480/360"></div>
  <div><img src="https://picsum.photos/id/12/480/360"></div>
  <div><img src="https://picsum.photos/id/13/480/360"></div>
  <div><img src="https://picsum.photos/id/14/480/360"></div>
</body>
</html>